Skip to content

test: sweep blueprints at runtime seeds; make task versions explicit#25

Merged
jeqcho merged 1 commit into
mainfrom
post-seed-fix-cleanups
Jul 14, 2026
Merged

test: sweep blueprints at runtime seeds; make task versions explicit#25
jeqcho merged 1 commit into
mainfrom
post-seed-fix-cleanups

Conversation

@jeqcho

@jeqcho jeqcho commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Follow-ups from the fresh-eyes review of #24 (both flagged as non-blocking nits there). No behavior change to shipped scenes.

What

  • tests/test_sim_blueprint.py: the parametrized soundness sweep still paired every scene with derive_seed(0, index, epoch) — index-derived seeds that never occur at runtime since fix: derive scene seed from instance_id, not sorted index #24. It now sweeps derive_seed(0, scene.init_seed, epoch), the seeds a default eval actually uses. The pinned tests keep their exact seed literals and assertions (they verify blueprint↔realization consistency at a fixed seed, which is seed-agnostic); the one comment claiming those literals correspond to real epochs is reworded.
  • src/kitchenbench/specs.py: fix: derive scene seed from instance_id, not sorted index #24 bumped the TaskSpec.version default to "2", so a genuinely new task would be born at version 2. The default is back to "1" and the nine existing tasks now pin version="2" explicitly (scoop_pasta already pins "3"). Every realized scene stamps the same version as before — verified by the existing metadata tests.

Gates

ruff check clean, ruff format --check clean, mypy clean, 317/317 pytest with the 100% coverage gate met.

🤖 Generated with Claude Code

Post-merge cleanups from the #24 review:

- test_sim_blueprint's sweep paired scenes with derive_seed(0, index, epoch),
  seeds that no longer occur at runtime now that init_seed is crc32-derived.
  Sweep with derive_seed(0, scene.init_seed, epoch) instead. Pinned tests keep
  their fixed seed literals (they check blueprint/realization consistency at a
  seed, any seed); the one comment claiming those literals were real epochs is
  reworded.

- TaskSpec.version's default was bumped to "2" in #24, which would mint future
  new tasks at version 2. Restore the default to "1" and set version="2"
  explicitly on the nine existing tasks (scoop_pasta already pins "3").
  Realized version stamps are unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jeqcho
jeqcho merged commit a8a2a93 into main Jul 14, 2026
12 checks passed
@jeqcho
jeqcho deleted the post-seed-fix-cleanups branch July 14, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant